package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchWaterQualitySpecialSubjectMapper;
import com.ruoyi.system.domain.DispatchWaterQualitySpecialSubject;
import com.ruoyi.system.service.IDispatchWaterQualitySpecialSubjectService;

/**
 * 水质专题Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchWaterQualitySpecialSubjectServiceImpl implements IDispatchWaterQualitySpecialSubjectService 
{
    @Autowired
    private DispatchWaterQualitySpecialSubjectMapper dispatchWaterQualitySpecialSubjectMapper;

    /**
     * 查询水质专题
     * 
     * @param waterQualitySpecialSubjectId 水质专题主键
     * @return 水质专题
     */
    @Override
    public DispatchWaterQualitySpecialSubject selectDispatchWaterQualitySpecialSubjectByWaterQualitySpecialSubjectId(Long waterQualitySpecialSubjectId)
    {
        return dispatchWaterQualitySpecialSubjectMapper.selectDispatchWaterQualitySpecialSubjectByWaterQualitySpecialSubjectId(waterQualitySpecialSubjectId);
    }

    /**
     * 查询水质专题列表
     * 
     * @param dispatchWaterQualitySpecialSubject 水质专题
     * @return 水质专题
     */
    @Override
    public List<DispatchWaterQualitySpecialSubject> selectDispatchWaterQualitySpecialSubjectList(DispatchWaterQualitySpecialSubject dispatchWaterQualitySpecialSubject)
    {
        return dispatchWaterQualitySpecialSubjectMapper.selectDispatchWaterQualitySpecialSubjectList(dispatchWaterQualitySpecialSubject);
    }

    /**
     * 新增水质专题
     * 
     * @param dispatchWaterQualitySpecialSubject 水质专题
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchWaterQualitySpecialSubject(DispatchWaterQualitySpecialSubject dispatchWaterQualitySpecialSubject)
    {
        return dispatchWaterQualitySpecialSubjectMapper.insertDispatchWaterQualitySpecialSubject(dispatchWaterQualitySpecialSubject);
    }

    /**
     * 修改水质专题
     * 
     * @param dispatchWaterQualitySpecialSubject 水质专题
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchWaterQualitySpecialSubject(DispatchWaterQualitySpecialSubject dispatchWaterQualitySpecialSubject)
    {
        return dispatchWaterQualitySpecialSubjectMapper.updateDispatchWaterQualitySpecialSubject(dispatchWaterQualitySpecialSubject);
    }

    /**
     * 批量删除水质专题
     * 
     * @param waterQualitySpecialSubjectIds 需要删除的水质专题主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualitySpecialSubjectByWaterQualitySpecialSubjectIds(Long[] waterQualitySpecialSubjectIds)
    {
        return dispatchWaterQualitySpecialSubjectMapper.deleteDispatchWaterQualitySpecialSubjectByWaterQualitySpecialSubjectIds(waterQualitySpecialSubjectIds);
    }

    /**
     * 删除水质专题信息
     * 
     * @param waterQualitySpecialSubjectId 水质专题主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualitySpecialSubjectByWaterQualitySpecialSubjectId(Long waterQualitySpecialSubjectId)
    {
        return dispatchWaterQualitySpecialSubjectMapper.deleteDispatchWaterQualitySpecialSubjectByWaterQualitySpecialSubjectId(waterQualitySpecialSubjectId);
    }
}
